package cn.seecoder.courselearning.controller.course;

import cn.seecoder.courselearning.service.course.RentService;
import cn.seecoder.courselearning.vo.course.RentCourseVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author wangzb
 * @date 2021/7/8
 * @description
 */
@RestController
@RequestMapping("/rent")
public class RentCourseController {
    @Resource
    RentService rentService;

    @GetMapping("/sid/{userId}")
    public List<RentCourseVO> qryRentList(@PathVariable("userId")Integer userId){
        return  rentService.qryRentList(userId);
    }
}
